package com.shop.api.feign;

import com.shop.Result.LdbzResult;
import com.shop.pojo.LdbzAdminMenu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@FeignClient(name = "shop-service-admin")
public interface AdminPictureFeign {

    @RequestMapping(value = "/admin/pic/service/upload",method = RequestMethod.GET)
    LdbzResult multifileUpload(@RequestParam("file")MultipartFile file, @RequestParam("request")HttpServletRequest request, @RequestParam("redirectAttributes")RedirectAttributes redirectAttributes);
}
